#include "addschool.h"
#include "ui_addschool.h"

AddSchool::AddSchool(QWidget* parent)
    : QDialog(parent)
    , ui(new Ui::AddSchool)
{
    ui->setupUi(this);
    connect(ui->pushButton, &QPushButton::clicked, this, [=]() {
        m_schoolName = ui->addSchoolComboBox->currentText();
        accept();
    });
}

AddSchool::~AddSchool()
{
    delete ui;
}
